<?php 
if (!empty($this->flash_messages))
{
    foreach ($this->flash_messages as $flash_message)
    {
        echo '<div class="message">'.$flash_message.'</div>';
    }
}
?>

<?php if (!empty($this->nodes)) : ?>
    <?php foreach ($this->nodes as $node) : ?>
      <div class="node-item">
        <h2>
            <em class="date"><?php echo date('d.m.Y',strtotime($node->publish_date)) ?></em>
            <?php if (!empty($node->url_alias)) : ?>
                <a href="<?php echo $this->fixUrl('node/view/'.$node->url_alias) ?>"><?php echo htmlspecialchars($node->title) ?></a>
            <?php else : ?>
                <a href="<?php echo $this->fixUrl('node/id/'.$node->id) ?>"><?php echo htmlspecialchars($node->title) ?></a>
            <?php endif; ?> 
        </h2>
        <p><?php echo nl2br(strip_tags($node->short_text)) ?></p>
        <div class="category">
            <?php echo '<strong>'.Zend_Registry::get('locale')->_('Category').': </strong>'?>
            <a href="<?php echo $this->fixUrl('node/category/'.$node->category) ?>"><?php echo $node->getCategory(); ?></a>
        </div>
      </div>
    <?php endforeach; ?>
<?php endif; ?>

<?php echo $this->paginator ?>